package demo08;

public class Test01Polymiorphism {
    public static void main(String[] args) {
        Laptop laptop = new Laptop();
        laptop.run();

        USB usb=new Mouse();
        laptop.useUSBDevice(usb);
        usb.close();
        USB usb1=new Keyboard();
        laptop.useUSBDevice(usb1);
        laptop.shutDowm();
    }
}
